package cn.exrick.xboot.modules.your.serviceimpl;

import cn.exrick.xboot.modules.your.dao.mapper.BedMapper;
import cn.exrick.xboot.modules.your.entity.Bed;
import cn.exrick.xboot.modules.your.service.IBedService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * 陪护床接口实现
 * @author chenyunxuan
 */
@Slf4j
@Service
@Transactional
public class IBedServiceImpl extends ServiceImpl<BedMapper, Bed> implements IBedService {

    @Autowired
    private BedMapper bedMapper;

    @Override
    public IPage<Bed> pageBed(Page initMpPage, QueryWrapper<Bed> qw) {
        return this.baseMapper.pageBed(initMpPage,qw);
    }
}